<if condition="$data['readonly']">
	<input class="hidden layui-input input-date" type="text" name="udf_field_{$data.id}" id="udf_field_{$data.id}" value="{$data.val}" >
	<input readonly="readonly"  class="layui-input input-date-readonly" type="text" name="disabled_udf_field_{$data.id}" id="udf_field_{$data.id}" value="{$data.val}" <notempty name="validate">check="{$data.validate}" info="{$data.msg}"</notempty>  >
	<else/>
	<php>
		$str_validate='';
		if(!empty($data['validate'])){
		$str_validate='check="'.$data['validate'].'" info="{'.$data['msg'].'"';
		}
	</php>
	<input readonly="readonly" class="layui-input input-date" type="text" name="udf_field_{$data.id}" id="udf_field_{$data.id}" value="{$data.val}" {$str_validate}>
</if>